﻿using A.M.ETO;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Sell.Application.IServices;
using Q.M.Sell.Doamin.DTO;
using Q.M.Sell.Doamin.Entity;
using Q.M.Sell.Infrastruecure.IRepository;
using Q.M.Sell.Infrastruecure.Repository;
using System.Drawing.Printing;
using System.Linq.Expressions;

namespace Q.M.Sell.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class SalesReadController : ControllerBase
    {
       private readonly ISalesServices salesServices;
        public SalesReadController(ISalesServices salesServices)
        {
            this.salesServices = salesServices;
        }

        /// <summary>
        /// 销售订单显示+分页+查询
        /// </summary>
        /// <param name="minMoney"></param>
        /// <param name="maxMoney"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        //[HttpGet]
        //public async Task<IActionResult> GetsalesInfo(string? minMoney, string? maxMoney, int pageIndex, int pageSize)
        //{
        //    var list=await salesServices.GetsalesInfo(minMoney, maxMoney, pageIndex, pageSize);
        //    return Ok(list);
        //}
        ///// <summary>
        ///// 反填销售订单
        ///// </summary>
        ///// <param name="salesid"></param>
        ///// <returns></returns>
        //[HttpGet]
        //public async Task<IActionResult> FindsalesInfo(string? salesid)
        //{
        //    var list = await salesServices.FindsalesInfo(salesid);
        //    return Ok(list);

        //}

    }
}
